package ynu.edu.online_course.service;

import ynu.edu.online_course.entity.WatchRecord;

import java.util.List;
import java.util.Map;

public interface WatchRecordService {
    void addWatchRecord(WatchRecord watchRecord);
    Long getTotalWatchDuration(Long userId);
    List<WatchRecord> getUserWatchRecords(Long userId);
    Map<Long, Long> getChapterWatchDurations(); // 章节观看时长统计
    Map<Long, Long> getCourseWatchDurations();  // 课程观看时长统计

}
